<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>
<script type="text/javascript">
	function appBack() {
		history.back(-1);
		//document.location.href='${requestScope.contextPath}/business/mResourceRes/mResourceResViewDetail.do?year=${map.year}&month=${map.month}&day=${map.day}&strResourceType=${map.ResourceType2}&strResourceID=${map.ResourceCode}';
	}
</script>

<script type="text/javascript">
	function conDelete(id, strSelDate, strResourceType, strResourceID, ResourceNM) {
		var del;
		del=confirm("예약을 취소하시겠습니까?");
		
		if (del==true) {
			location.href="${requestScope.contextPath}/business/mResourceRes/mResourceResDel.do?ResTypeCatid=${ResTypeCatid}&ResType=${ResType}&id="+ id +
					"&strSelDate=" + strSelDate.replace(/-/gi,'') + "&strResourceType=" + strResourceType + 
					"&strResourceID=" + strResourceID + "&ResourceNM=" + ResourceNM +"&ResTypeNM=${ResTypeNM }";
		}
		return false;
	}
</script>
</head>
<body>
		<div class="header">
			<h1>자원예약</h1>
		</div><!-- // header -->
		<div class="content reservation">
		<form name="form" action="${requestScope.contextPath}/business/mResourceRes/mResourceResDel.do" method="post" onsubmit="return conDelete(this.form);" >
			<fieldset>
				<legend>예약 등록</legend>
				<table summary="" cellspacing="0" class="table3">
					<caption>예약등록</caption>
					<colgroup>
						<col style="width:60px" />
						<col style="width:80%" />
					</colgroup>
						<tbody>
							<tr>
								<th scope="row">예약자</th>
								<td>${map.RegUserName}</td>
							</tr>
							<tr>
								<th scope="row">회의제목</th>
								<td>${map.Subject}</td>
							</tr>
							<tr>
								<th scope="row">회의장소</th>
								<td>${map.Resource_NAME}</td>
							</tr>
							<tr>
								<th scope="row">회의일자</th>
								<td>${map.StartDate} ~ ${map.EndDate}</td>
							</tr>
							<tr>
								<th scope="row">회의시간</th>
								<td>${map.StartDateHour}시 ${map.StartDateMin}분 ~ ${map.EndDateHour}시 ${map.EndDateMin}분</td>
							</tr>
							<tr>
								<th scope="row">내용</th>
								<td><c:out value="${map.Contents}" escapeXml="false" /></td>
							</tr>
						</tbody>
				</table>
			</fieldset>		
		<p class="btn_area2">
			<!-- 
			<c:if test="${ResType eq 'View'}">
			<a href="${requestScope.contextPath}/business/mResourceRes/mResourceResView.do?year=${param.year}&month=${param.month}&day=${param.day}&strResourceType=${map.ResourceType2}&strResourceID=${map.ResourceCode}"><img src="${requestScope.contextPath}/images/btn/btn_ok.gif" alt="확인" /></a>
			</c:if>
			<c:if test="${ResType == ''}">
			<a href="${requestScope.contextPath}/business/mResourceRes/mResourceResDetailList.do?ResTypeCatid=${ResTypeCatid}&ResourceType=&catid=${ResTypeCatid}&type=${map.ResourceType2}&ResourceNM=${ResTypeNM}&strResourceID=${map.ResourceCode}&year=${param.year}&month=${param.month}&day=${param.day}"><img src="${requestScope.contextPath}/images/btn/btn_ok.gif" alt="확인" /></a>
			</c:if>
			 -->
			<c:if test="${map.RegUserID eq sessionScope.SESSION_USER_INFO.userId}">
				<a href="${requestScope.contextPath}/business/mResourceRes/mResourceResModifyForm.do?ResTypeCatid=${ResTypeCatid}&ResType=${ResType}&ArticleCD=${map.ResourceID}&ResTypeNM=${ResTypeNM }"><img src="${requestScope.contextPath}/images/btn/btn_modify.gif" alt="수정" /></a>
				<img src="${requestScope.contextPath}/images/btn/btn_reset3.gif" alt="예약취소" onclick="conDelete('${map.ResourceID}','${map.StartDate}','${map.ResourceType2}','${map.ResourceCode}','${map.ResourceNMUtf}');" />
			</c:if>
		</p>
		</form>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>